// 启动工程首先加载这个文件
import { createApp } from 'vue'
import { createPinia } from 'pinia'

// 引入了app组件 
import App from './App.vue'
import router from './router'

// 导入Element plus
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// Element的图标
import * as ElementPlusIconsVue from '@element-plus/icons-vue'

// 把组件挂载到页面上
const app = createApp(App)
app.use(createPinia())
app.use(router)
// 挂载element plus
app.use(ElementPlus)
// 挂载图标
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
    app.component(key, component)
}
app.mount('#app')
